//配置express中间件，将app传入到路由控制系统
const express = require('express');
const session = require('express-session');
const bodyParser = require('body-parser');

var app = express();
app.set("view engine", "ejs");
app.set("views","views");



app.use(express.static('./public'));
app.use(session({secret:"abc"}));
app.use(bodyParser.urlencoded());
app.use(bodyParser.json()); 

console.log('in express')

var route = require("../routes/user.server.route");
route(app);




module.exports = app;